﻿

#region Using Statements

using UnityEngine;
using System.Collections.Generic;

#endregion


/// <summary>
/// 
/// </summary>
public class ObjectScript : MonoBehaviour
{

    #region Members

    public PlatformMovement movement { get { if (_movement == null) _movement = GetComponent<PlatformMovement>(); return _movement; } }
    private PlatformMovement _movement;

    public BoomerangMaster bmaster { get { if (_bmaster == null) _bmaster = GetComponent<BoomerangMaster>(); return _bmaster; } }
    private BoomerangMaster _bmaster;

    public PlayerInput player { get { if (_player == null) _player = GetComponent<PlayerInput>(); return _player; } }
    private PlayerInput _player;

    public BoxCollider2D box { get { if (_box == null) _box = GetComponent<BoxCollider2D>(); return _box; } }
    private BoxCollider2D _box;

    public CircleCollider2D circle { get { if (_circle == null) _circle = GetComponent<CircleCollider2D>(); return _circle; } }
    private CircleCollider2D _circle;

    protected const float RayEpsilon = 0.05f;

    #endregion

}